//
// Created on 2024/4/18.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#include "NapiHelper.h"

NapiHelper &NapiHelper::GetInstance() {
    static NapiHelper napiHelper;
    return napiHelper;
}

void NapiHelper::registerNapiFunction(std::string name, JsFunction *jsFunction) {
    FUNCTION_MAP.emplace(name, *jsFunction);
}

NapiHelper::NapiHelper(){

}

NapiHelper::~NapiHelper() {
    
}